package com.atguigu.gmall.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.alibaba.dubbo.config.annotation.Reference;
import com.atguigu.gmall.bean.UserAddress;
import com.atguigu.gmall.service.OrderService;
import com.atguigu.gmall.service.UserService;

@Service
public class OrderServiceImpl implements OrderService {

	@Reference  // 【引用服务】
	UserService userService;
	
	@Override
	public List<UserAddress> initOrder(String userId) {
		// 远程调用 查询用户的收货地址
		List<UserAddress> addressList = userService.getUserAddressList(userId);
		return addressList;
	}

}
